<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:p="http://primefaces.org/ui">
<h:head>
   <title>Prova de conceito MJDoc - MJ</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <h:outputStylesheet name="css/screen.css" />
   <h:outputScript name="js/script.js"/>
</h:head>
<h:body>
<p:layout fullPage="true">  
	    <p:layoutUnit position="north" size="55" resizable="true" collapsible="true">  
	        <h:form>
	        	<p:menubar>  
	        		<p:menuitem value="Protocolo"/> 
			        <p:menuitem value="Registrar Protocolo"/>  
			        <p:menuitem value="Onde está meu documento?"/>  
			    </p:menubar> 
	        </h:form> 
	    </p:layoutUnit>  
	  
	    <p:layoutUnit position="west" size="172" resizable="true" collapsible="true" style="text-align: center;" styleClass="background_azul">  
	    	<h:form>
		        <h:commandLink>  
		        	<h:panelGrid>
		        		<h:graphicImage value="/resources/img/btn_caixaEntrada.jpg" />
			        	<h:outputText value="Caixa de Entrada (0)" />  
			        </h:panelGrid>
			    </h:commandLink>
			    
			    <p:spacer height="10"/>
			    
			    <h:commandLink action="/pages/area_trabalho.xhtml">  
		        	<h:panelGrid>
		        		<h:graphicImage value="/resources/img/btn_areaTrabalho.jpg" />
			        	<h:outputText value="Área de Trabalho (0)" />  
			        </h:panelGrid>
			    </h:commandLink>
		    </h:form>
	    </p:layoutUnit>  
	  
	    <p:layoutUnit position="center">  
	         <ui:insert name="content"/>
	    </p:layoutUnit>  
	</p:layout>
	
	<p:ajaxStatus onstart="dlgCarregando.show();" oncomplete="dlgCarregando.hide();">  
       <p:dialog widgetVar="dlgCarregando" header="Processando..." 
       	showEffect="fade" height="65" width="250" modal="true" 
       	closable="false" resizable="false">  
	    	<h:graphicImage value="/resources/img/aguarde.gif" />
	   </p:dialog> 
	</p:ajaxStatus> 
		
	 <p:dialog widgetVar="dlgMessage" header="Mensagem do Sistema" showEffect="fade" hideEffect="fade" 
	 		height="120" width="400" modal="true" closable="false" resizable="true">  
	   		<p:messages globalOnly="true" autoUpdate="true"/>
	   		<br/>
			<div style="text-align: center;">
	   			<p:button value="Ok" onclick="dlgMessage.hide();"/>
	   		</div>
	  </p:dialog> 
	   
	<p:outputPanel autoUpdate="true">
	  <script type="text/javascript">
			if(#{facesContext.maximumSeverity ne null}){
				dlgMessage.show();
			}
	   </script>
	</p:outputPanel>
</h:body>
</html>
